﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;

namespace BLL
{
    public class PositionManger
    {

        private static EFHelper<OASystemEntities> _efHelper = new EFHelper<OASystemEntities>();

        #region 查询返回所有职位集合
        /// <summary>
        /// 查询返回所有职位集合
        /// </summary>
        /// <returns></returns>
        public List<OA_Position> QueryList()
        {
            try
            {
                return _efHelper.QueryList<OA_Position>(null).ToList();
            }
            catch (Exception)
            {
                return new List<OA_Position>();
            }
        } 
        #endregion
    }
}
